/*问题一的测试类*/

import java.util.Scanner;

public class Question1Test {

    public static void main(String[] args) {
        // 从键盘输入数值
        System.out.println("请输入所有位置元素的值：");
        int value = new Scanner(System.in).nextInt();
        //计算
        Question1.rowSum(value);
        Question1.colSum(value);
        Question1.pDiagSum(value);
        Question1.mDiagSum(value);
    }
}
